public class Test {
public static void main(String [] args){
System.out.println(new B().getValue());

} s
tatic class A{
protected int value;
public A(int v) {
setValue(v);
} p
ublic void setValue(int value){
this.value = value;
} p
ublic int getValue(){
try{
value++;
return value;
} catch(Exception e){
System.out.println(e.toString());
} finally {
this.setValue(value);
System.out.println(value);
} r
eturn value;
} } s
tatic class B extends A{
public B() {
super(5);
setValue(getValue() - 3);
} p
ublic void setValue(int value){
super.setValue(2 * value);
} } }